home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 24 / AACD 24.iso / AACD / Online / Epic4 / share / epic / help / 7_docs / Text_highlight < prev    next >
Encoding:
Text File  |  2001-03-21  |  2.7 KB  |  60 lines

  1. Special Text Highlighting Techniques                                        
  2.  
  3. Although EPIC is a text-based irc client, it still has many ways of marking
  4. text such that it stands out from the rest.  The simplest kinds of text
  5. highlighting are boldface, underline, and reverse video.  They work simply
  6. by surrounding the desired text with the appropriate control characters:
  7.  
  8.    Char   Input   Description                                               
  9.     ^B      B     toggles boldfacing on/off
  10.     ^V      V     toggles reverse video on/off
  11.     ^_      _     toggles underlining on/off
  12.     ^O      O     turns off all highlighting
  13.  
  14. The "char" is the character typed to achieve the desired effect; ^B means
  15. control-b, etc.  The "input" is how the character appears if typed on the
  16. input line.  The settings BOLD_VIDEO, INVERSE_VIDEO, and UNDERLINE_VIDEO
  17. govern whether they will actually be displayed in the display window.  In
  18. truth, other keys may be bound to the highlighting characters, but they will
  19. always be displayed as shown above.
  20.  
  21. In addition, EPIC also supports the use of ANSI escape sequences inside the
  22. display window (ircII itself does not).  The main use for this is for using
  23. color.  ANSI escape sequences are really much more powerful than that, but
  24. a full discussion is beyond the scope of this document.  We will focus on
  25. how to use them to colorize text output.
  26.  
  27. EPIC controls whether escape sequences are passed to the display window with
  28. the DISPLAY_ANSI setting.  It is off by default.  All of the above effects
  29. can be achieved with escape sequences as well.  For text highlighting, all
  30. sequences have the following form (E is the ESC character):
  31.  
  32.    E[#m
  33.  
  34. The '#' is some number.  Multiple effects can be set at once (assuming they
  35. don't clash with each other) with either of these forms:
  36.  
  37.    E[#mE[#m
  38.    E[#;#m
  39.  
  40. For the purposes of this discussion, the following numbers may be used:
  41.  
  42.    Code   Effect                     | Code    Text/Background Color  
  43.      0    turn off all highlighting  | 30/40   black
  44.      1    turn bold on               | 31/41   red
  45.      2    turn bold off              | 32/42   green
  46.      3    turn underline on          | 33/43   yellow
  47.      5    turn blink on              | 34/44   blue
  48.      7    turn reverse video on      | 35/45   magenta (purple)
  49.                                      | 36/46   cyan (aqua)
  50.                                      | 37/47   white
  51.  
  52. For example, the first word in the following text would be red:
  53.  
  54.    E[31m***E[0m Alert! Alert!
  55.  
  56. See Also:
  57.    bind(4) bold, highlight_off, reverse, underline; set(4) bold_video,
  58.    display_ansi, inverse_video, underline_video
  59.  
  60.